<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    
</body>
<script>
    // 利用递归求两个数字最小公倍数
    function fun(a,b){
        times = a * b;
        return function fn(a,b){
            if (a < b){
                var i = a;
                a = b;
                b = i;
            }
            var m = a % b;
            a = b;
            b = m;
            // return m === 0 ? times/a : fn(a,b)
        }
    }
    console.log(fun(45, 60)(45, 60))
    
</script>
</html>